package com.shungen.apicloud.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 接口信息(InterfaceInfo)表实体类
 *
 * @author makejava
 * @since 2024-07-23 09:32:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class InterfaceInfo extends Model<InterfaceInfo> {
    //主键
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    //名称
    private String name;

    /**
     * 调用接口价格消耗积分
     */
    private Long price;

    //描述
    private String description;
    //接口地址
    private String url;
    //请求头
    private String requestHeader;
    //响应头
    private String responseHeader;
    //接口状态（0-关闭，1-开启）
    private Integer status;
    //请求类型
    private String method;
    //创建人
    private Long userId;
    //创建时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;
    //是否删除(0-未删, 1-已删)

    /**
     * 图片url
     */
    private String image;

    /**
     * 参数文档id
     */
    private Long paramTextId;

    /**
     * 访问总次数
     */
    private Long visitedCount;

    @TableLogic
    private Integer isDelete;

}

